﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NLBS.Entity;

namespace NLBS.Data.Interface
{
   public interface ITrackBackService
    {
        #region trackback

        /// <summary>
        /// 获取引用列表
        /// </summary>
        /// <returns></returns>
         IList<TrackBack> GetTrackBack();

        /// <summary>
        /// 分页根据关键字搜索引用
        /// </summary>
        /// <param name="startIndex">起始页</param>
        /// <param name="pageSize">每页显示日志数</param>
        /// <param name="prefix">关键字</param>
        /// <returns></returns>
         IPagedCollection<TrackBack> GetTrackBackBySearch(int startIndex, int pageSize, string prefix);

         void InsertTrackBack(TrackBack tb);

         TrackBack GetTrackBackByID(int id);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="title"></param>
        /// <param name="excerpt"></param>
        /// <returns></returns>
         TrackBack GetTrackBackByName(string title, string excerpt);

        /// <summary>
        /// 更新一条引用信息
        /// </summary>
        /// <param name="tb"></param>
         void UpdateTrackBack(TrackBack tb);
        /// <summary>
        /// 删除一条引用
        /// </summary>
        /// <param name="id"></param>
         void DeleteTrackBack(int id);


        #endregion
    }
}
